//
//  KpViewController.m
//  SelfDriving
//
//  Created by apple on 16/2/2.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "KpViewController.h"
#import "XLSwitchView.h"
@interface KpViewController ()<XLSwitchViewDelegate>
@end
@implementation KpViewController
- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleDefault;
    //UIStatusBarStyleDefault = 0 黑色文字，浅色背景时使用
    //UIStatusBarStyleLightContent = 1 白色文字，深色背景时使用
}

- (BOOL)prefersStatusBarHidden
{
    return YES; // 返回NO表示要显示，返回YES将hiden
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden = NO;
    
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
#pragma  mark 返回
- (IBAction)secAction:(UIButton *)sender {
    UIButton *btn = (UIButton *)[[AppDelegate shareDelegate]._tableBarController.tabBar viewWithTag:998];
    btn.selected = NO;
    [self dismissViewControllerAnimated:YES completion:nil];
}
#pragma  mark 拍照
- (IBAction)PhotographAction:(UIButton *)sender {
    UIStoryboard *customerStoryboard = [UIStoryboard storyboardWithName:@"KP"
                                                                 bundle:[NSBundle mainBundle]];
    UIViewController *viewcv = [customerStoryboard instantiateViewControllerWithIdentifier:@"KP"];
    viewcv.modalPresentationStyle= UIModalPresentationOverFullScreen;
    
    [self presentViewController:viewcv animated:YES completion:nil];
    
}
#pragma  maek 视频
- (IBAction)videoAction:(UIButton *)sender {
    UIStoryboard *customerStoryboard = [UIStoryboard storyboardWithName:@"KP"
                                                                 bundle:[NSBundle mainBundle]];
    UIViewController *viewcv = [customerStoryboard instantiateViewControllerWithIdentifier:@"VideoViewController"];
    viewcv.modalPresentationStyle= UIModalPresentationOverFullScreen;
    [AppDelegate shareDelegate].sptype = 0;
    [self presentViewController:viewcv animated:YES completion:nil];
    
    
    
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
